package cn.lsnu.common.interfacetools.interfaceentity;

import java.util.Date;

/**
 * @Description  实体类接口 包括分页信息
 * @author  lin
 * @Datetime  2020/2/2 16:04
 */  
public class BaseEntity<T>  implements TopEntity {

    //角色字段
    //id
    private String roleId;

    //角色名
    private String roleName;

    //角色描述
    private String roleDesc;

    //权限字段
    //id
    private String menuId;

    //菜单名
    private String menuName;

    //接口地址
    private String url;

    //接口图标
    private String icon;

    private String pid;

    private String parentId;

    private String sort;

    private String permission;

    private Integer add;

    private Integer del;

    private Integer upd;

    private Integer look;

    private String addUrl;

    private String delUrl;

    private String updUrl;

    //登录验证字段
    private String verifyCode;

    //登录密码验证
    private String repeatPwd;

    private Page<T> page;

//  状态码
    private String code;

    private String msg;

    private Date minTime;

    private Date maxTime;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {

        return menuName == ""?null:menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public Integer getAdd() {
        return add;
    }

    public void setAdd(Integer add) {
        this.add = add;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Integer getUpd() {
        return upd;
    }

    public void setUpd(Integer upd) {
        this.upd = upd;
    }

    public Integer getLook() {
        return look;
    }

    public void setLook(Integer look) {
        this.look = look;
    }

    public String getAddUrl() {
        return addUrl;
    }

    public void setAddUrl(String addUrl) {
        this.addUrl = addUrl;
    }

    public String getDelUrl() {
        return delUrl;
    }

    public void setDelUrl(String delUrl) {
        this.delUrl = delUrl;
    }

    public String getUpdUrl() {
        return updUrl;
    }

    public void setUpdUrl(String updUrl) {
        this.updUrl = updUrl;
    }

    public Page<T> getPage() {
//        return page == null?new Page<T>():page;
        return  page;
    }

    public void setPage(Page<T> page) {
        this.page = page;
    }

    public String getverifyCode() {
        return verifyCode;
    }

    public void setverifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public String getRepeatPwd() {
        return repeatPwd;
    }

    public void setRepeatPwd(String repeatPwd) {
        this.repeatPwd = repeatPwd;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getMinTime() {
        return minTime;
    }

    public void setMinTime(Date minTime) {
        this.minTime = minTime;
    }

    public Date getMaxTime() {
        return maxTime;
    }

    public void setMaxTime(Date maxTime) {
        this.maxTime = maxTime;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "roleId='" + roleId + '\'' +
                ", roleName='" + roleName + '\'' +
                ", roleDesc='" + roleDesc + '\'' +
                ", menuId='" + menuId + '\'' +
                ", menuName='" + menuName + '\'' +
                ", url='" + url + '\'' +
                ", icon='" + icon + '\'' +
                ", pid='" + pid + '\'' +
                ", parentId='" + parentId + '\'' +
                ", sort='" + sort + '\'' +
                ", permission='" + permission + '\'' +
                ", page=" + page +
                '}';
    }
}
